import axiosServer from "../utils/request";
/**
 * 获取标签列表
 * @returns 
 */
export function getLabelList() {
    return axiosServer({
        url: "/api/label/list",
        method: "get"
    });
}

/**
 * 添加标签
 * @param {*} data
 */
export function addLabel(label_name) {
    return axiosServer({
        url: "/api/label/add",
        method: "post",
        data: {
            label_name
        }
    });
}
/**
 * 删除标签
 */
export function deleteLabel(label_id) {
    return axiosServer({
        url: "/api/label/delete",
        method: "post",
        data: {
            label_id
        }
    });
}